home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Very Best of Atari Inside
/
The Very Best of Atari Inside 1.iso
/
mint
/
mint99s
/
assert.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-12-23
|
421b
|
18 lines
/*
Copyright 1990,1991 Eric R. Smith. All rights reserved.
*/
#ifdef NDEBUG
#define assert(expression)
#else
# ifdef __STDC__
#define assert(expression) \
((expression) ? (void)0 : FATAL("assert(`%s') failed at line %ld of %s.", \
#expression, (long)__LINE__, __FILE__))
# else
#define assert(expression) if(expression) FATAL("assert(%s) failed", \
"expression")
# endif
#endif /* NDEBUG */